package com.sysu.homework.service;

import java.util.List;

import com.sysu.homework.model.Group;
import com.sysu.homework.model.Student;

public interface StudentService {
	boolean isExist(int id);
	int addStudent(Student student);
	boolean isValid(int studentid,String password);
	int getCourseId(int studentId);
	int createGroup(Group group);
	Student getStudentById(int id);
	int updateStudent(Student student);
	List<Group> getAllGroups();
	int addToGroup(int studentId,int groupId);
	int removeFromGroup(int studentId,int groupId);
	int addLockToGroup(int groupId);
	int removeLockToGroup(int groupId);
	int getGroupId(int studentid);
}
